//
//  PlayerInforTableViewCell.m
//  MountEverestFM
//
//  Created by dllo on 15/11/1.
//  Copyright © 2015年 chenn. All rights reserved.
//

#import "PlayerInforTableViewCell.h"

@implementation PlayerInforTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.headView = [[UIImageView alloc]init];
        [self.contentView addSubview:_headView];
        
        self.albumLabel = [[UILabel alloc]init];
        [self.contentView addSubview:_albumLabel];
        
        self.titleLabel = [[UILabel alloc]init];
        _titleLabel.font = [UIFont boldSystemFontOfSize:13];
        [self.contentView addSubview:_titleLabel];
        
        self.timeLabel = [[UILabel alloc]init];
        _timeLabel.font = [UIFont boldSystemFontOfSize:13];
        [self.contentView addSubview:_timeLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.headView.frame = CGRectMake(5 * FM_Screen_Pts_Width, 5 * FM_Screen_Pts_Height, self.contentView.bounds.size.height - 10 * FM_Screen_Pts_Height, self.contentView.bounds.size.height - 10 * FM_Screen_Pts_Height);
    self.albumLabel.frame = CGRectMake(self.contentView.bounds.size.height + 5 * FM_Screen_Pts_Height, 5 * FM_Screen_Pts_Height, FM_Screen_Width - self.contentView.bounds.size.height - 5 * FM_Screen_Pts_Height, 20 * FM_Screen_Pts_Height);
    self.titleLabel.frame = CGRectMake(self.contentView.bounds.size.height + 5 * FM_Screen_Pts_Height, 28 * FM_Screen_Pts_Height, FM_Screen_Width - self.contentView.bounds.size.height - 5 * FM_Screen_Pts_Height, 20 * FM_Screen_Pts_Height);
    self.timeLabel.frame = CGRectMake(self.contentView.bounds.size.height + 5 * FM_Screen_Pts_Height, 51 * FM_Screen_Pts_Height, FM_Screen_Width - self.contentView.bounds.size.height - 5 * FM_Screen_Pts_Height, 20 * FM_Screen_Pts_Height);
}

@end
